//
//  EtConst.m
//  events
//
//  Created by movin on 2019/5/26.
//

#import "EtConst.h"
#import "EtEventCenter.h"

@implementation EtConst

static bool _switched = false;
static log_print _logPrint = nil;

+ (void)clear { 
    [EtEventCenter clear];
}

+(void)setLogPrint:(log_print)print {
    _logPrint = print;
}

+ (bool)isSwitched {
    return _switched;
}

+ (void)setSwitched:(bool)enabled {
    _switched = enabled;
}

+ (void)log:(NSString *)tag content:(NSString *)content {
    if (nil != _logPrint) {
        _logPrint(tag, content);
    }
}

@end
